﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin/Admin.Master"
    CodeBehind="ProjectManager.aspx.cs" Inherits="TimeAxis.Admin.Manager.ProjectManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        项目管理
    </h2>
    <span class="failureNotification">
        <asp:Literal ID="FailureText" runat="server"></asp:Literal>
    </span>
    <div class="accountInfo">
        <fieldset class="login">
            <legend>新增项目</legend>
            <p>
                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">项目名称:</asp:Label>
                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
            </p>
            <p class="submitButton">
                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="添加" OnClick="LoginButton_Click"
                    ValidationGroup="LoginUserValidationGroup" />
            </p>
        </fieldset>
    </div>
    <div class="accountInfo">
        <fieldset class="login">
            <legend>项目</legend>
            <%
                foreach (TimeAxis.Models.Category c in categorys)
                {
                    Response.Write("<div style=\"width:100%;line-height:30px;height:30px;\"><div style=\"text-align:left;width:70%; float:left;\">" + c.CName + "</div><div style=\"text-align:right;width:30%; float:right;\"><a href=\"ProjectEdit.aspx?docid=" + c.Id + "\">编辑</a>&nbsp;&nbsp;<a href=\"ProjectDelete.aspx?docid=" + c.Id + "\">删除</a></div></div>");
                }
            %>
        </fieldset>
    </div>
    <div style="width: 100%; text-align: right;">
        <div class="back" onclick="javascript:top.location.href='/Admin/Manager/Default.aspx';">
            返回</div>
    </div>
</asp:Content>
